#ifndef CELL_HPP
#define CELL_HPP

#include <gtkmm/button.h>

class Minefield;

class Cell : public Gtk::Button
{
public:
    Cell(Minefield&, int, int, bool);
    int getRow() { return row; }
    int getCol() { return col; }
    bool isMine() { return mine; }

    void reveal();

protected:
    Minefield& mother;  // Necessary to callback reveal method

    int row;
    int col;

    int minesNumber;    // Mines in the zone

    bool mine;          // Is a mine ?
    bool revealed;
};

#endif

